<%@ Page Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true" CodeFile="EpsPendientes.aspx.cs" Inherits="EpsPendientes" Title="Untitled Page" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dxcp" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register TagPrefix="cc1" Namespace="UsrControls" Assembly="UsrControls" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.3.Export, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script language="javascript" type="text/javascript">
     function confirmEditEP()
    {
    var counter = ctl00_ContentPlaceHolder1_gidvAccionEpeDev.GetSelectedRowCount();
    if (counter > 1)
        {
        counter = 0;
            alert("Debe seleccionar un solo registro");
            return(false);
        }
        else if (counter == 1)
        {
        counter = 0;
            return(true);
        }
        else if (counter == 0)
        {
        counter = 0;
        alert("Debe seleccionar al  menos un registro");
            return(false);
        }
    }
    
     </script>
         <h1 class="presupuesto">Consulta EPs Pendientes</h1>
  <table class="tabs">
                                                    <tr>
                                                        <td class="tab-inactivo">
                                                            <anthem:LinkButton ID="lnkEpe" runat="server" CausesValidation="False" EnableCallBack="False"
                                                                Font-Bold="False" Font-Italic="False" Font-Size="Small" Font-Strikeout="False"
                                                                OnClick="lnkEpe_Click" OnClientClick="return confirmEditEP();" Width="93px">EP</anthem:LinkButton>
                                                        </td>
                                                    </tr>
                                                </table>
    <dxwgv:ASPxGridView ID="gidvAccionEpeDev" runat="server" AutoGenerateColumns="False"
        CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue"
        KeyFieldName="FAE_ID" OnAutoFilterCellEditorCreate="gidvAccionEpeDev_AutoFilterCellEditorCreate"
        OnAutoFilterCellEditorInitialize="gidvAccionEpeDev_AutoFilterCellEditorInitialize"
        OnProcessColumnAutoFilter="gidvAccionEpeDev_ProcessColumnAutoFilter" OnRowCommand="gidvAccionEpeDev_RowCommand"
        Width="100%">
        <SettingsBehavior ColumnResizeMode="Control" />
        <Styles CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue">
            <Header ImageSpacing="10px" SortingImageSpacing="10px">
            </Header>
            <SelectedRow BackColor="Maroon">
            </SelectedRow>
        </Styles>
        <SettingsPager AlwaysShowPager="True" ShowDefaultImages="False">
            <AllButton Text="Todos" Visible="True">
            </AllButton>
            <NextPageButton Text="Siguiente &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Anterior">
            </PrevPageButton>
        </SettingsPager>
        <TotalSummary>
            <dxwgv:ASPxSummaryItem DisplayFormat="{0:N0}" FieldName="FAE_VALOR_EPE" ShowInColumn="FAE_VALOR_EPE"
                SummaryType="Sum" />
            <dxwgv:ASPxSummaryItem DisplayFormat="{0:N0}" FieldName="FAE_VALOR_CDP" ShowInColumn="FAE_VALOR_CDP"
                SummaryType="Sum" />
            <dxwgv:ASPxSummaryItem DisplayFormat="{0:N0}" FieldName="CTT_VALOR_CONTRATO" ShowInColumn="CTT_VALOR_CONTRATO"
                SummaryType="Sum" />
        </TotalSummary>
        <Images ImageFolder="~/App_Themes/Plastic Blue/{0}/">
            <CollapsedButton Height="10px" Url="~/App_Themes/Plastic Blue/GridView/gvCollapsedButton.png"
                Width="9px">
            </CollapsedButton>
            <ExpandedButton Height="9px" Url="~/App_Themes/Plastic Blue/GridView/gvExpandedButton.png"
                Width="9px">
            </ExpandedButton>
            <HeaderSortDown Height="11px" Url="~/App_Themes/Plastic Blue/GridView/gvHeaderSortDown.png"
                Width="11px">
            </HeaderSortDown>
            <HeaderSortUp Height="11px" Url="~/App_Themes/Plastic Blue/GridView/gvHeaderSortUp.png"
                Width="11px">
            </HeaderSortUp>
        </Images>
        <SettingsCookies Enabled="True" />
        <Columns>
            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Width="20px">
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn Caption="FAE_ID" FieldName="FAE_ID" Visible="False"
                VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Objeto" FieldName="FAE_OBJETO" VisibleIndex="1"
                Width="450px">
                <EditCellStyle Wrap="True">
                </EditCellStyle>
                <FilterCellStyle Wrap="True">
                </FilterCellStyle>
                <EditFormCaptionStyle Wrap="True">
                </EditFormCaptionStyle>
                <HeaderStyle Wrap="True" />
                <CellStyle Wrap="True">
                </CellStyle>
                <FooterCellStyle Wrap="True">
                </FooterCellStyle>
                <GroupFooterCellStyle Wrap="True">
                </GroupFooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Valor EP" FieldName="FAE_VALOR_EPE" VisibleIndex="2"
                Width="120px">
                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Estado" FieldName="TPE_NOMBRE" VisibleIndex="3"
                Width="150px">
                <Settings AutoFilterCondition="Contains" />
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="PLN_ID" Visible="False" VisibleIndex="7">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="ACC_ID" Visible="False" VisibleIndex="7">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Valor CDP" FieldName="FAE_VALOR_CDP" VisibleIndex="4"
                Width="120px">
                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Rubro" FieldName="PLN_NOMBRE" VisibleIndex="6"
                Width="150px">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Valor Compromiso" FieldName="CTT_VALOR_CONTRATO"
                VisibleIndex="5">
                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <Settings ShowFilterRow="True" ShowFooter="True" ShowGroupPanel="True" />
    </dxwgv:ASPxGridView>
</asp:Content>

